package com.cw.japp

class UserSettings {

	Boolean acceptPrivateShow
	Boolean acceptGroupShow
	Boolean blockModel
	byte[] privateShowMsg
	byte[] groupShowMsg
	byte[] blockModelMsg
	Boolean firstPrivateMsgNotification
	Boolean privateMsgNotification
	Boolean tipNotification
	String firstPrivateMsgSound
	String privateMsgSound
	Integer status
	Date lastModifiedDate
	Date createdDate
	User user

	static belongsTo = [User]

	static mapping = {
		id column: "user_setting_id"
		version false
	}

	static constraints = {
		acceptPrivateShow nullable: true
		acceptGroupShow nullable: true
		blockModel nullable: true
		privateShowMsg nullable: true
		groupShowMsg nullable: true
		blockModelMsg nullable: true
		firstPrivateMsgNotification nullable: true
		privateMsgNotification nullable: true
		tipNotification nullable: true
		firstPrivateMsgSound nullable: true, maxSize: 45
		privateMsgSound nullable: true, maxSize: 45
		status nullable: true
		lastModifiedDate nullable: true
		createdDate nullable: true
	}
}
